export default function (dsCode) {
  return {
    code: 'processes',
    fields: [{
      code: 'entity_code',
      name: '写入实体',
      type: 'ref',
      rangeset: {
        path: '/service/dw/pf/rdb/entities/' + dsCode,
        key: 'TABLE_NAME',
        name: 'TABLE_NAME'
      },
      cardpos: 1
    }, {
      code: 'extract_type',
      name: '表达式类型',
      type: 'state',
      rangeset: '1:sql@3:groovy',
      cardpos: 2,
      change: [{
        eqal: 1,
        state: {
          actuator_id: 'hide',
          extract_expression: 'show'
        }
      }]
    }, {
      code: 'actuator_id',
      name: '执行器',
      type: 'ref',
      cardpos: 3,
      rangeset: {
        dataset: 'db_actuator'
      }
    }, {
      code: 'extract_expression',
      name: '提取表达式',
      type: 'memo',
      cardpos: 4
    }, {
      code: 'memo',
      name: '备注',
      type: 'memo'
    }]
  }
}
